package com.share.shareplatform.sharegoods.service;



import com.share.shareplatform.pojo.GoodsOneComment;
import com.share.shareplatform.pojo.GoodsTwoComment;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

//后面的One表示一级评论 Two表示二级评论
public interface GoodsCommentService {

    Long addOneOne(GoodsOneComment goodsOneComment);
    Long addOneOTwo(GoodsTwoComment goodsTwoComment);

    Integer deleteOneOneById(Long id);
    Integer deleteTwoOneById(Long id);

    Integer deleteAllOneByIds(Long[] ids);
    Integer deleteAllTwoByIds(Long[] ids);

    List<GoodsOneComment> findAllOneByGoodsId(Long id);

    List<GoodsTwoComment> findAllTwoByGoodsIdAndReplyId(Long goodsId,Long replyId);

    GoodsOneComment findOneOneById(Long id);
    GoodsTwoComment findOneTwoById(Long id);

    Integer deleteOneOneForeignById(Long id);


}
